<?php
namespace App\Models;
use App\Models\Simple\CSVModel;

use CodeIgniter\Model;
class Places extends Model{
    protected $origin = WRITEPATH . 'data/placesData.CSV';

    protected $keyField = 'id';
    protected $validationRules = [
    'name' => 'required|min_length[3]|max_length[255]',
    'description' => 'required',
    'link'=> 'required|min_length[30]|max_length[255]',
    'image' => 'required',
];
    protected $table = 'places';
    protected $allowedFields = ['name', 'description', 'link', 'image'];
    
}
